//
//  DetailViewController.m
//  Project_A Gary
//
//  Created by leilei on 16/3/31.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()
@property (nonatomic, retain)UIView *statusView;

@end

@implementation DetailViewController

-(void)dealloc
{
    [_informationId release];
    [_statusView release];
    [_url release];
    
    [super dealloc];
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
    self.navigationController.navigationBar.barTintColor = [UIColor blueColor];
    
    [self dataHandle];
}

#pragma mark - 通过传过来的url数据 解析webView
- (void)dataHandle
{
    
    UIWebView *wb = [[UIWebView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:wb];
    NSURL *url = [NSURL URLWithString:self.url];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    [wb loadRequest:request];
    
  
}
//#pragma mark - 当出现本页的时候tabbar消失
//- (void)viewWillAppear:(BOOL)animated
//{
//    [super viewDidAppear:animated];
//    self.tabBarController.tabBar.hidden = YES;
//}
//
//
//#pragma mark - 当出现本页的时候tabbar出现
//- (void)viewWillDisappear:(BOOL)animated
//{
//    [super viewDidDisappear:animated];
//    self.tabBarController.tabBar.hidden = NO;
//}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
